Skip to main content

Getting available country codes

The country codes available on TPN fluctuate over time. You can get the available country codes by calling the following endpoint on any of the validator ips as described in the API Authentication section.

# [GET] http://$VALIDATOR_IP:3000/api/config/countries
curl http://$VALIDATOR_IP:3000/api/config/countries

# Response format
[ "String" ]

Here is an example of how to call the endpoint and the response you will receive:

# Example call
curl http://185.189.44.166:3000/api/config/countries

# Example response
[ 'US', 'NL', 'BR' ]